package com.example.service;

import com.baomidou.mybatisplus.service.IService;
import com.example.entity.AccDept;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface AccDeptService extends IService<AccDept> {

    PageInfo<AccDept> listAccDept(Map<String, Object> params);

    boolean UpdateAccDeptList(@Param("AccDepts") List<AccDept> AccClass);

    boolean FirstInsert(List<AccDept> AccClass);

    PageInfo<Map<String, Object>> getSelect(String deptName, Integer num);

    void deleteByDeptId(Integer deptId);

    boolean saveOne(AccDept accDept);

    boolean saveBatch(List<AccDept> accDeptList);
    /**
     * 查询所有数据，包括逻辑删除的数据
     * @return
     */
    List<AccDept> getAll();

    /**
     * 根据部门名称查询(全部数据，包括逻辑删除)
     * @param deptName
     * @return
     */
    AccDept getDeptWithNoLogic(String deptName);
}
